package com.linsir.utils;

import freemarker.template.Configuration;
import freemarker.template.Template;
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfig;
import org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer;

import javax.annotation.Resource;
import java.io.IOException;

public class TemplateUtils {

    @Resource
    private static FreeMarkerAutoConfiguration autoConfiguration;

    public static String tempTOString() throws IOException {
       /* Configuration configuration = freeMarkerConfig.getConfiguration();
         return  configuration.getTemplate("info").toString();*/
        //freeMarkerConfigurer
        autoConfiguration.checkTemplateLocationExists();
        return "";
    }


}
